﻿@model MSAcademic.v2.Web.Models.Home.ContentSectionViewModel
@{
    ViewBag.Title = "NewsContentSection";
}

<h2>News ContentSection</h2>

<div>Novosti se dijele na sljedece subsectione:</div>
@foreach(var subsection in Model.ListOfSubSectionsForThisContentSection)
    {
        <div> @subsection.Name</div>
        
    }

<div>SubSectioni s svim njihovim novostima</div>
<div> 
@foreach(var subsection in Model.SubSectionsWithTheirArticles)
{
    <div><h1>@subsection.Item1.Name </h1></div>
        foreach(var article in subsection.Item2)
        {
            <div>@Html.RouteLink(article.Title,"ArticleProfile",new{articleId= article.Id})</div>
            <div>@Html.Raw("Published on:"+article.PublishedOn)</div>
            <div>@Html.Raw(article.ShortText)</div>
        }
}
    </div>